package com.fjk.point.controller;

import com.fjk.module.domain.Order;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/point")
public class PointController {
    @GetMapping("/test")
    public String test(){
        return "point-service";
    }

    @PostMapping("/add")
    public String add(@RequestBody Order order){
        return "添加积分成功,商品名称: " + order.getProductName();
    }
}
